using Coderoom.ScrumPlanner.Utilities;
using Xunit;

namespace Coderoom.ScrumPlanner.Tests.Unit.UtilityTests
{
	public class StringExtensionTests
	{
		[Fact]
		public void Inject_returns_formatted_string_when_correct_inputs_are_provided()
		{
			// arrange
			var formatString = "This {0} a string {1}.";
			var data = new[] {"is", "test"};

			// act
			var result = formatString.Inject(data);

			// assert
			Assert.Equal("This is a string test.", result);
		}
	}
}